home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / gfx / pbm / manuals.lha / netpbm / man / ppmnorm.man < prev    next >
Text File  |  1994-03-01  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ppmnorm(1)           AMIGA (7 October 1993)            ppmnorm(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           ppmnorm - normalize the contrast in a portable pixmap
  10.  
  11.      SYNOPSIS
  12.           ppmnorm [-bpercent N | -bvalue N] [-wpercent N | -wvalue N]
  13.           [ppmfile]
  14.  
  15.      DESCRIPTION
  16.           Reads a portable pixmap as input.  Normalizes the contrast
  17.           by forcing the lightest pixels to white, the darkest pixels
  18.           to black, and linearly rescaling the ones in between; and
  19.           produces a portable pixmap as output.
  20.  
  21.           Works by computing the realtive grey-level of each pixel
  22.           a'la ppmtopgm, and uses those values to scale the RGB
  23.           levels.  Note that this is different from using pgmnorm on
  24.           the individual red, green, and blue greymaps (as produced by
  25.           ppmtorgb3) and recombining them.
  26.  
  27.      OPTIONS
  28.           By default, the darkest 2 percent of all pixels are mapped
  29.           to black, and the lightest 1 percent are mapped to white.
  30.           You can override these percentages by using the -bpercent
  31.           and -wpercent flags, or you can specify the exact pixel
  32.           values to be mapped by using the -bvalue and -wvalue flags.
  33.           Appropriate numbers for the flags can be gotten from the
  34.           ppmhist tool.  If you just want to enhance the contrast,
  35.           then choose values at elbows in the histogram; e.g. if value
  36.           29 represents 3% of the image but value 30 represents 20%,
  37.           choose 30 for bvalue.  If you want to lighten the image,
  38.           then set bvalue to 0 and just fiddle with wvalue; similarly,
  39.           to darken the image, set wvalue to maxval and play with
  40.           bvalue.
  41.  
  42.           All flags can be abbreviated to their shortest unique
  43.           prefix.
  44.  
  45.      SEE ALSO
  46.           pgmnorm(1), ppmhist(1), ppm(5)
  47.  
  48.      AUTHOR
  49.           Wilson H. Bent. Jr. (whb@usc.edu), heavily based on the
  50.           pgmnorm filter by Jef Poskanzer.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/1/94)
  64.  
  65.  
  66.  
  67.